#define _CRT_SECURE_NO_WARNINGS
#include"queue.h"

void queue_test1()
{
	queue q;
	queue_init(&q);
	queue_push(&q, 1);
	queue_push(&q, 2);
	queue_push(&q, 3);
	queue_push(&q, 4);
	queue_pop(&q);
	while (!queue_empty(&q))
	{
		queue_data_type front = queue_front(&q);
		printf("%d ", front);
		queue_pop(&q);
		int n = queue_size(&q);
		printf("%d ", n);
	}
	queue_destory(&q);
}

int main()
{
	queue_test1();
	return 0;
}